package org.summer.oauth.services;

import org.springframework.security.core.AuthenticationException;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.TokenRequest;
import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices;
import org.springframework.stereotype.Service;
import org.springframework.security.oauth2.provider.token.ResourceServerTokenServices;

/**
 * oatuh <br>
 * 页面添加关键字
 * <p/>
 *
 * @author xiaoxiao081228@126.com
 * <p/>
 * Version: 1.0
 * <p/>
 * @copyright: Copyright (c) 2017/12/12
 * <p/>
 * @company: summer
 * <p/>
 */
@Service(value = "tokenService")
public class BaseTokenService implements ResourceServerTokenServices, AuthorizationServerTokenServices{

    public OAuth2Authentication loadAuthentication(String s) throws AuthenticationException, InvalidTokenException {
        return null;
    }

    public OAuth2AccessToken readAccessToken(String s) {
        return null;
    }

    public OAuth2AccessToken createAccessToken(OAuth2Authentication oAuth2Authentication) throws AuthenticationException {
        return null;
    }

    public OAuth2AccessToken refreshAccessToken(String s, TokenRequest tokenRequest) throws AuthenticationException {
        return null;
    }

    public OAuth2AccessToken getAccessToken(OAuth2Authentication oAuth2Authentication) {
        return null;
    }
}
